package com.guoyw.seata.account;

import org.apache.dubbo.config.spring.context.annotation.EnableDubbo;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

/**
 * @EnableDubbo等同于 @DubboComponentScan和 @EnableDubboConfig组合
 *
 * @DubboComponentScan 扫描 classpaths 下类中添加了 @Service 和 @Reference 将自动注入到spring beans中。
 *
 * @EnableDubboConfig 扫描的dubbo的外部化配置。
 */

@SpringBootApplication(scanBasePackages = "com.guoyw.seata.account")
@MapperScan({"com.guoyw.seata.account.mapper"})
@EnableDubbo(scanBasePackages = "com.guoyw.seata.account")
public class SeataAccountApplication{

  public static void main(String[] args){
    SpringApplication.run(SeataAccountApplication.class, args);
  }

}
